/*
 * Project: jcerticles
 * Copyright(c) 2011 jcerticles
 * All rights reserved.
 *
 * $Revision $, last modified $Date $ by $Author $
 */
package com.quintilis31.home.core.user.repository.impl;

import com.quintilis31.home.common.repository.user.UserDetails;
import com.quintilis31.home.core.user.repository.IUserDetailsDAO;
import com.quintilis31.home.persistence.type.impl.sql.jpa.jpaimpl.GenericJPADAO;

/**
 * TODO Write javadoc...
 * @author Jothi
 * @since 1.6
 * @version
 */
public class UserDetailsDAOImpl extends GenericJPADAO < UserDetails, Long > implements IUserDetailsDAO {
	
	/**
	 * {@inheritDoc}
	 */
	public UserDetails saveUserDetails(final UserDetails userDetails) {
		System.out.println(entityClass);
		return userDetails;
	}
	
	// TODO implementation ????
	public int findAllUsers(final String firstName, final String email) {
		// TODO use a NamedQuery for this case...
		entityManager.createNamedQuery(FIND_ALL_USERS_FOR_FIRSTNAME_AND_EMAIL);
		return 0;		
	}
	
	public void testUserDAO() {
		System.out.println(entityClass);
	}

}
